from flask import Flask
from flask import request
import json


app = Flask(__name__)


@app.route('/post_body_params_json',methods = ['POST'])
def post_body_params_json():
    login_type=request.form['login_Type']
    user=request.form['User']
    user=json.loads(user)
    #print(login_type)
    #print(user['user_name'])
    return '登录方式：%s，%s! 欢迎使用POST接口进行接口mock验证——POST_body_from-data_json！'%(login_type,user['userName'])




if __name__ == '__main__':
   app.run('127.0.0.1',5009,debug=True)
